package cn.kgc.dao;

import cn.kgc.pojo.PoOrder;
import cn.kgc.pojo.SoOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {

    //添加销售订单
    public Integer addSoOrder(SoOrder soOrder);
    //查询指定订单
    public SoOrder queryByIdSoOrder(@Param("id")String id);
    //修改销售订单
    public Integer updateSoOrder(@Param("soOrderId")String soOrderId);
    //销售订单无效化
    public Integer deleteSoOrder(@Param("soOrderId")String soOrderId);
    //查询销售订单
    public List<SoOrder> querySoOrder(@Param("soOrderId")String soOrderId,@Param("soOrderName")String soOrderName,@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);


    //添加采购订单
    public Integer addPoOrder(PoOrder poOrder);
    //查询指定采购订单
    public PoOrder queryByIdPoOrder(@Param("id")String id);
    //修改采购订单
    public Integer updatePoOrder(@Param("poOrderId")String poOrderId);
    //采购订单无效化
    public Integer deletePoOrder(@Param("poOrderId")String poOrderId);
    //查询采购订单
    public List<PoOrder> queryPoOrder(@Param("poOrderId")String poOrderId,@Param("poOrderName")String poOrderName,@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);
}
